ngl: Remove an unused field
authorMatthias Clasen <mclasen@redhat.com>
Sat, 20 Mar 2021 00:50:40 +0000 (20:50 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 21 Mar 2021 20:05:10 +0000 (16:05 -0400)
We are ignoring the debug nodes, so the
debug_groups string chunk is unused.

gsk/ngl/gsknglcommandqueue.c
gsk/ngl/gsknglcommandqueueprivate.h

index bebd3158239c9e6642eab0b20c939a373817f814..0fb56cfc50c90cb3e81de6653883f0da41c3f2ac 100644 (file)
@@ -424,8 +424,6 @@ gsk_ngl_command_queue_init (GskNglCommandQueue *self)
   gsk_ngl_command_binds_init (&self->batch_binds, 1024);
   gsk_ngl_command_uniforms_init (&self->batch_uniforms, 2048);
 
-  self->debug_groups = g_string_chunk_new (4096);
-
   gsk_ngl_buffer_init (&self->vertices, GL_ARRAY_BUFFER, sizeof (GskNglDrawVertex));
 }
 
@@ -1215,8 +1213,6 @@ gsk_ngl_command_queue_end_frame (GskNglCommandQueue *self)
         }
     }
 
-  g_string_chunk_clear (self->debug_groups);
-
   self->batches.len = 0;
   self->batch_binds.len = 0;
   self->batch_uniforms.len = 0;
index 9a35326ceeae3dec0092d9aef0c198bc09125470..e51d1abb46e1a9f3f6bd8bf9bd97a4d881b10be6 100644 (file)
@@ -225,9 +225,6 @@ struct _GskNglCommandQueue
    */
   GskNglCommandUniforms batch_uniforms;
 
-  /* String storage for debug groups */
-  GStringChunk *debug_groups;
-
   /* Discovered max texture size when loading the command queue so that we
    * can either scale down or slice textures to fit within this size. Assumed
    * to be both height and width.